<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <meta charset="UTF-8">
  <title>超市 - 进销存 - 订单</title>
  <link rel="stylesheet" href="/layui2/css/layui.css">
  <link rel="stylesheet" href="/css/public.css">
  <link rel="stylesheet" href="/css/warehouse.css">
</head>
<body class="layui-layout-body" onload="loadOrder()">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">layui 后台布局</div>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:void(0);">q</a>
        <!--        <dl class="layui-nav-child">-->
        <!--          <dd><a href="javascript:void(0)">基本资料</a></dd>-->
        <!--          <dd><a href="javascript:void(0)">安全设置</a></dd>-->
        <!--        </dl>-->
      </li>
      <li class="layui-nav-item"><a href="javascript:void(0)" onclick="urlArray.logout()">退出登录</a></li>
    </ul>
  </div>
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item">
          <a href="javascript:void(0);" onclick="urlArray.provider()">供应商管理</a>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:void(0);">商品管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:void(0)" onclick="urlArray.type()">商品种类管理</a></dd>
            <dd><a href="javascript:void(0)" onclick="urlArray.info()">商品信息管理</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:void(0);" onclick="urlArray.warehouse()">库存管理</a>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a href="javascript:void(0);" onclick="urlArray.order()">订单管理</a>
        </li>
      </ul>
    </div>
  </div>
  <div class="layui-body">
    <div class="title">订单管理</div>
    <div class="table-container">
      <table class="layui-hide" id="order" lay-filter="order"></table>
      <script type="text/html" id="order-toolbar">
        <button class="layui-btn layui-btn-primary layui-input-radius" lay-event="add">添加订单</button>
        <input type="text" id="search" class="layui-input layui-input-radius" placeholder="请输入订单号" title="">
        <button class="layui-btn layui-btn-primary layui-input-radius" lay-event="search">搜索</button>
      </script>
      <script type="text/html" id="order-tool">
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">详情</a>
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
      </script>
      <div id="order-page"></div>
    </div>
  </div>
</div>
<div id="add-order-layout">
  <div class="layout-background display-none" onclick="hideLayout($('#add-order-layout'))"></div>
  <div class="layout-box display-none">
    <form action="javascript:void(0)" class="layui-form">
      <div class="layout-header">
        <span class="layout-title">新订单</span>
        <span class="layout-close">+</span>
      </div>
      <div class="layout-container">
        <div class="layui-form-item">
          <label class="layui-form-label">商品名称</label>
          <div class="layui-input-block">
            <input type="text" name="goods" id="goods" class="layui-input" required lay-verify="required"
                   placeholder="商品名称" title="">
            <ul class="goods display-none"></ul>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">订单数量</label>
          <div class="layui-input-block">
            <input type="text" name="count" class="layui-input" placeholder="订单数量" required
                   lay-verify="required" title="">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">备注</label>
          <div class="layui-input-block">
            <input type="text" name="intro" class="layui-input" placeholder="备注信息" title="">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">操作员</label>
          <div class="layui-input-block">
            <input type="text" name="creater" class="layui-input" required lay-verify="required" readonly="readonly"
                   title="">
          </div>
        </div>
      </div>
      <div class="layout-footer">
        <button class="layui-btn layui-input-radius" lay-submit lay-filter="add">提交订单</button>
        <button class="layui-btn layui-btn-primary layui-input-radius" onclick="hideLayout($('#add-order-layout'))">
          取消
        </button>
      </div>
    </form>
  </div>
</div>
<div id="detail-order-layout">
  <div class="layout-background display-none" onclick="hideLayout($('#detail-provider-layout'))"></div>
  <div class="layout-box display-none">
    <div class="layout-header">
      <span class="layout-title">订单【<span></span>】详情</span>
      <span class="layout-close" onclick="hideLayout($('#detail-provider-layout'))">+</span>
    </div>
    <div class="layout-container">
      <div class="detail-col">
        <div class="layui-form-item">
          <label class="layui-form-label">订单编号</label>
          <div class="layui-input-block">
            <input type="text" name="no" class="layui-input" title="" readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">商品名称</label>
          <div class="layui-input-block">
            <input type="text" name="goods" class="layui-input" title="" readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">订单数量</label>
          <div class="layui-input-block">
            <input type="text" name="count" class="layui-input" title="" readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">总价</label>
          <div class="layui-input-block">
            <input type="text" name="multi" class="layui-input" title="" readonly="readonly">
          </div>
        </div>
      </div>
      <div class="detail-col">
        <div class="layui-form-item">
          <label class="layui-form-label">下单时间</label>
          <div class="layui-input-block">
            <input type="text" name="ctime" class="layui-input" title="" readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">更新时间</label>
          <div class="layui-input-block">
            <input type="text" name="utime" class="layui-input" title="" readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">订单状态</label>
          <div class="layui-input-block">
            <input type="text" name="status" class="layui-input" title="" readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">备注</label>
          <div class="layui-input-block">
            <input type="text" name="intro" class="layui-input" title="" readonly="readonly">
          </div>
        </div>
      </div>
      <div class="layui-clear"></div>
    </div>
    <div class="layout-footer">
      <button class="layui-btn layui-btn-primary layui-input-radius"
              onclick="hideLayout($('#detail-order-layout'))">
        关闭
      </button>
    </div>
  </div>
</div>
<div id="edit-order-layout">
  <div class="layout-background display-none" onclick="hideLayout($('#edit-provider-layout'))"></div>
  <div class="layout-box display-none">
    <form action="javascript:void(0)" class="layui-form">
      <div class="layout-header">
        <span class="layout-title">订单【<span></span>】详情</span>
        <span class="layout-close" onclick="hideLayout($('#edit-provider-layout'))">+</span>
      </div>
      <div class="layout-container">
        <div class="layui-form-item display-none">
          <label class="layui-form-label">订单ID</label>
          <div class="layui-input-block">
            <input type="text" name="id" required lay-verify="required" class="layui-input"
                   title="" readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">商品名称</label>
          <div class="layui-input-block">
            <input type="text" name="goods" required lay-verify="required" class="layui-input" title=""
                   readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">订单数量</label>
          <div class="layui-input-block">
            <input type="text" name="count" required lay-verify="required" class="layui-input" title="">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">订单状态</label>
          <div class="layui-input-block">
            <select name="status" lay-verify="required" title="">
              <option value="1">订单提交成功，结算中···</option>
              <option value="2" selected="selected">结算成功</option>
              <option value="3">订单完成</option>
            </select>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">备注</label>
          <div class="layui-input-block">
            <input type="text" name="intro" class="layui-input" title="">
          </div>
        </div>
      </div>
      <div class="layout-footer">
        <button class="layui-btn layui-input-radius" lay-submit lay-filter="edit">修改</button>
        <button class="layui-btn layui-btn-primary layui-input-radius"
                onclick="hideLayout($('#edit-order-layout'))">
          取消
        </button>
      </div>
    </form>
  </div>
</div>
<footer>
  <script src="/js/jquery.min.js"></script>
  <script src="/layui2/layui.js"></script>
  <script src="/js/public.js"></script>
  <script src="/js/order.js"></script>
</footer>
</body>
</html>